package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Attr;
import com.xhwl.common.query.cent.sdata.AttrQuery;

import java.util.List;

/**
 * @Author: zhangliuli
 * @Description:
 * @Date: Create in 2023/4/11
 */
public interface IAttrService extends IService<Attr> {
    ResultJson create(Attr attr);

    ResultJson update(Attr attr);

    ResultJson delete(Integer id);

    List<Attr> list(AttrQuery attrQuery);

    Page<Attr> page(Page page, AttrQuery attrQuery);

    int query(Attr attr);

    int queryCode(Attr attr);

    /**
     * 查找企业下，某个场景的字段
     *
     * @param attrQuery
     * @return
     */
    List<Attr> findEntAttr(AttrQuery attrQuery);
}
